<?php
/**
*
* @package MoltX QuickChat Configuration
* @author $Author: moltendorf $
* @version $Id: molten_chat_configuration.php 144 2009-09-20 04:28:22Z moltendorf $
* @latest $URL: https://molten-chat.googlecode.com/svn/trunk/source/includes/molten_chat/molten_chat_configuration.php $
* @copyright (c) 2005-2009 Matthew Oltendorf
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

// PHP: Hypertext Preprocessor Document

/*
	Unfinished Items:
		1.
		2.
		3.
		4.
		5.
*/

/*
	Known Issues:
		1.
		2.
		3.
		4.
		5.
*/

/**
* @ignore
*/
if (
	!defined ('molten_chat')
)
	{
		die ('Unauthorised Access.');
	}

// Style: Procedural.

$caching_modules = array (
	'apc',
	'shmop',
	'xcache'
);

global $config, $table_prefix;

// Set the configuration.
molten_chat_configuration :: $cache = isset ($config ['molten_chat_cache_type']) ?
	$caching_modules [$config ['molten_chat_cache_type']] :
	null;
molten_chat_configuration :: $database = 'phpbb';
molten_chat_configuration :: $instances = isset ($config ['molten_chat_cache_connections']) ?
	(integer) $config ['molten_chat_cache_connections'] :
	2;
molten_chat_configuration :: $module = 'phpbb';
molten_chat_configuration :: $update = isset ($config ['molten_chat_cache_update']) ?
	(integer) $config ['molten_chat_cache_update'] :
	30;